SOURCEDIR=/var/www/htdocs/libregamenight.xyz/lgn
DESTDIR=/var/www/htdocs/libregamenight.xyz/lgn.static

all:
	./swx $(SOURCEDIR)
	./swx_sitemap  $(DESTDIR) > $(DESTDIR)/sitemap.xml
	gzip --best -c $(DESTDIR)/sitemap.xml > $(DESTDIR)/sitemap.gz
	./swx_plan $(DESTDIR) > $(DESTDIR)/siteplan.html
	./swx_rss $(SOURCEDIR) > $(DESTDIR)/feed.xml
	mv data $(DESTDIR)/pub/data
gopher:
	./swx_gopher $(SOURCEDIR)
clean:
	mv $(DESTDIR)/pub/data .
	rm -rf $(DESTDIR)
	rm swx.log
force:
	find lgn {} \;
	make all
